I\'m trying to authenticate user login for my express/mongoose application. Right now the register function is as follows:
app.post(\'/submitRegister\', fun