model fixed for logout