Added complete validation of forms.