added a mongodb validation in gwt controller