added form field error-checking and highlighting