test validating the signature
handle validation of requests. refactor request parameter checking