Fixes ajax bug and validate_callback bug.
Merge pull request #107 from HSWebteam/bug_106

Fixes ajax bug and validate_callback bug.