Added a login handler function.
This has the openid loginhandler decorator to designate it as the login handling function.
Need to add those auxiliary functions like is_authenticated to User class.