Add formaction for redirection.