Improved code for mandatory params and removed http_referer from the list