An express middleware that looks after user logins and authentication