validation working on create