minor syntax mistake. still redirect indefinitely on failure