Uncomment check_candidate function and changing the redirect link