made automatic redirect to main.php if already logged in
Merge branch 'master' of https://github.com/RasmusRK/Project
added die(); to index to avoid this : http://thedailywtf.com/Articles/WellIntentioned-Destruction.aspx