added error if parameter is missing in the api request
added simple validation for query parameters on the server sidde