Added validation to ballot creation.
Fixed required properties problem.