Updated index.php, fixes #413
Merge pull request #449 from rohitpaulk/login-issues

Login issues (fixes #413)