Added 'exit' after every header call in php