#22: validate form before submit by ajax