Enabled login using passport authorisation.
Ensured authorised access to the api and the app.