solved edge case in custom appointment validations