Added the captcha functionalities back so that the register page works again. (Copied from 1.0.6)