fixing user logout