user is logged in after registering