refactoring, mongo id validations