Fixed none in checkLogin