Fixes ajax bug and validate_callback bug.

Fixes bug #106.