Changed to redirect to homepage after login. breaks tests