modify login and auth process.