added mongodb for mongoose
changed auth process