added code from legacy to session#login view
fixed vote controller