Managing smart card authentication