implementing methods authenticationhandlerimpl