Validation and view creation