Adding some simple validation to the forms.