Modifying to validate HttpServletRequest headers and attributes.

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>