Redirect to login page on failed login. Fixes #628
Merge pull request #778 from pafcu/loginredir

Redirect to login page on failed login. Fixes #628