created if statement for blank input