Update failed redirect login code