Fix. just after login, the user should be sent to redirect page instead of index
Fix. make index.php redundant.