Updated to validate the request before it is used to make sure that when
used with a JSF managed bean that the Omnifaces Faces utility got it.