redirect on failure as well