changed params for validateEdit