judge blank input in view