Use getAccount method instead of checkLogin