Bugfix: "result flag" was not resetting in the session.

Also added it to the UMS because we might also want to embed custom
login forms to pages so that the user can skit the default admin
interface. We might also want to figure out a way to include this
in the FMS.