implement validateImmediately and better number input
bind maxlength to textarea