register check function -> register a check function