user logout is working