Added Flask-Login functionality; saves login session, allows for logging out.