login page status checking and updating lastlogin, lastaccess

login page status checking and updating lastlogin, lastaccess fields at the same time.