adds authentication