implemented a add_vote method and added it to routes