partial flask-login and email support