Another error checking fix
Adding handling of sessions to voting