fix redirect in loginAction