Hooked registration front-end onto MongoDB