update user type in db at login