fixing edits validation