fixing error handling in voting booth