Added authenticate endpoint