added validations on availabilities