Enhance debugging issues by adding a new additional validations and logging.