log user in after registering