fixed previous page problem, login success handler