Added user logout functionality