Upgraded to Flask-User v0.6 with UserAuthClass.