added 'exit;' after header (Location)