Made some changes to the passport conf.
Fixed the User model, and some common model functionality required for user login.