updated authentication and reauthentication methods