Added validation of base64 string for decrypt