Added user login and logout methods