Removed some surplus debug info.
Changed /login and /register to detect registration status BEFORE entering passwords.