fix(login): set session prior to login in case of redirection, catch login exceptions

Fixes: https://github.com/brettp/Login-As/issues/10 and https://github.com/brettp/Login-As/issues/7