finish the user, login logic