add validation conditions