Enabling validation in edit forms