validation working on client edit