Added some check if logged in code and tested to see if it works
Added some unused code related to passport config and user model for mongodb