User and password check using ajax