Added user login and logout