Finish user login logic