refactored sign-up to work with MongoDB
fully migrates to mongoDB