finish the login