Moved more validation to jersey.