make sure validations is not null when setting the value in setValidationFor