fixing validation when custom getter is used