add validations at html level for form creation