Implement asynchronous checkLogin method