test login by ajax