Merge Ajax call and Validator