added check for blank feilds