Added forms as widgets and added validation for forms.