add required validator for iputs for Add  mode