added changes in index and header file for city state validation