Fixed redirect to /login bug