Hardened the Login software against user error.