Fixed captchas.

Fixed the implementation of captchas.