validation working on user detail