Added support for asynchronous validation functions