Upgraded schema
Added test for logins