revise login and skip old page, by diwen