-- Implemented validation for edit screen