Fix endpoint validation