How to create simple login and sending email in Flask