Added some validation and error handling for poll creation

Fixes issue #1