rewrite of auth process complete