Adding working JS code for null field check and zipcode field check