Search Implementation, Added server side validation