More accurate user login check