fix bug login with ajax