added validation of mandatory query params