use failureRedirect on client side error