simple validation of form fields