Fixed bug where user is incorrectly redirected back to the final voting page after login