Add validation and exception functionalities