fix login and register vote for unencrypted votes