started form validation class, rewrite pattern small cleanup