Ajax validation for invalid and duplicated email