Factorize input validation
Validate wsa headers