get login and register hooked up to mongodb