index.php: Reorganized code
index.php: Require user name

This prevents one very bad password from making the system easily exploitable.