Wrong signature of clearErrorMessage inside validate method