fixed evaluation issue causing authenticate to always be true