more error checking for blank fields server side