SonarQube raises this as code smell
The validate function of this module
requires to return either false or custom error message.
Doing this is flagged as an error in Sonar
Return same type of value.
Need to mark this as false positive.
Return ‘Please satisfy the condition’