Refactor ajax validation and enable ajax validation for all forms