Simple static form validation class