changed login and setup to better describe the errors they should throw. Has not been tested bcuz i dont have mongo