return false from formFailed function should preventDefault and stopPropagation