Developed a validation utility to validate base64 encoded strings.