[#3] Readableized the service validator function