update login behavior