Added form validation to the testing page