Updated index.php, fixes #413

The check for *old password style* was comparing a string to 0 (integer), which always return true. Fixes #413