added the user model
added login/logout functionality