Fix search for users by attribute on mongo