Added a set validation rules method in form validation