Added admin endpoints and corrected error displayed when invalid credentials were provided