check if fields are not empty