fix logging in after registering