Added user login and logout functions.