Added handleLogin action and logout action

UserController