updated login checker