Minor fixes/changes.

Changed the sql scheme of the user logins. FIxed the login model.