validate input fields from index.jsp

Change-Id: Ic8d83cd2a58aa88de2096eec501a952bdab88cef