Initial commit
Initial setup.
Basic workflow for registering.
Registration just adds username and password to DB.
Bit of tidying.
Registration checks for pre-existing username.
Separated routes out.
Username checking when registering actually works nows.
Added login page.
Created login process.
Added login and authentication.
Account page displays logged in user's name.
Added logout.
Corrected usage of signed cookie for authentication to allow persistence of login.
Removed stray console.log.
Removed unused parameter.
User cannot access the login page again if already logged in.
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.