This fixes #652.
We check if _POST['username'] exists meaning someone is just logging in, if we have that then we issue a redirect. The 303 is to redirect using GET otherwise POST is used which causes a loop
Added redirect when a POST value is found
Can you die() after the header-redirect?
No use to keep execution if user gets redirected :)
Added an exit like the one above. That's the only change so if scrut was ok before it should be again :)
added exit after redirect