working on validation