Added validations to post vote record