added sign in/out, registration, mongo db, logging