added UsersController and login functionality