redirect corrected, headers sent corretly