Added some validation to the appointment model