replaced the environment checker for a debug mode checker
added a error catcher for the validation failings
added validation errors, and the form validation classes