Fix login/register. Use Flask-Login