created the form, and added validation routines into the controller class