Added a validation function

To disable the validation function, go to class/class.form_builder.php and set $required to false