Add valiation for required form fields.