clean up the validator code
validation

changed a little bit sanitization, added validation messages and implemented the validation itself
removed unnecessary comment
refactored validateParseTagParams() method, added unit tests