How can we impose validation on form fields?