Validate all the arguments