redirect to previous page after login
added GET for vote