working on validation errors