Added validations for votes