if match:
                return True, error_msg
            else:
                error_msg = (str(self.name) + " should adhere to regex " +
                             str(pattern))