implementing login / logout with flask-login 0.2.7