Finish user login and registration.