adding checks for required information for request
adding check for API secret too