Build safer logins and protect user input.
Recent revisions are kept. Restoring one creates a new revision.