changed login route and voting