Authenticating using the Flask-Login extension