Added exception handler to Validate.