Added user logout function