change checkLogin