added function to check if someone voted or not