correctly cast string to boolean when testing if authentication is enabled