Added Exit after header on redirect

Did this to avoid eventual exploit.