return value on some validation functions