javascript validation for search and subscribe email id