Brought in passport-local-mongoose to handle user creation and authentication.
Reinstated validation message on trying to register an already existing username.
Corrected form inputs to use id attribute instead of name.