add validation of appointment