#116: Properly implement ajax form error

Resolves #116.