Added checks for required HTTP parameters.