fix authenticatation