Merge checkLogin and other router to one line code