fix conditional for adding auth