logging out users when creating a new user