Change the way of auto login after register