worked on validation