Validation and rendering