login user after registering