Changed to session authentication
Adding mongoose imports
Implemented mongoDB functionality