Added blank input check