check if the user is exist, then if the user and pass are corresponded