refactored the schema verification code in the geosubmit service and ichnaea.service.error to use the same function