login/logout added with flask-login plugin