some ajax validations