Finish user login with ajax