cleanup login to ensure correct return path