Edited error checking for blank inputs