basic validation of input fields in idnex.jsp

Change-Id: I4399a2df73252f2b71b6d6210dad497605ce75bf
basic validation of all input fields in index.jsp

Change-Id: I66cad8cb82f777745e229f023d80e802f3fee529