Created skeleton for ac_form() function
Finished the validation code