changed HasErrorMessage to HasErrorMessages with vararg param