Using Flask-Login to handle the login process