added poll validation and home page