Added user login and out