enable auto-login after user registered