Is there any other parts of the site where we could be using potatoCaptcha? If so, it might make more sense to move the validation code into another file