changed validredirect to redirectChar