Trying to implement passport authentication (#1)
Log in works, but forwards user instead of giving response (#1)
Got logging in working correctly on backend (#1)
Refactored login slightly; updated front-end logic (#1)

Back-end now responds with 401 if authentication fails

Front-end handles errors correctly and forwards user on successful login