Form Validation

re ordered error catching