Allow users to register.

Login page links to registration page; checks for mismatched passwords and duplicate usernames; fixes for reading from Firebase.