Updated login.py with latest Flask Login 0.2.7