edit and validate criteria