update user table and and login check