pub fn validate_request<T: Validate>(input: &T) -> Result<(), AppError>
Validate a request/input struct and return a formatted AppError if invalid