added data validation to depot