adding validation to the rewrites param