Common Validation functions for node