- adding validations to modals