Why are we doing a server side regex here at all, since it's just passing in an additional context variable and we're doing validation in js anyway?