now user will be logged in after registering