add validation logic