the passport.authenticate function doesnt seem to work