edited validation