Changing save user to occur after checking errors. This fixes an unexpected exception but changes functionality in that a good login will not be cleared because a login fails. PR: 31658