fixed error checking for blank fields!