Updated send packet handler to use enums for type safety
Complete validation and dynamic fields