validate blank input and max length 500