add redirect for check failed