Fixed the bug - the next step is to write the UI for poll submission and creation