This looks to be a duplicate post, please check my response here: Username does not work for custom mongodb connection