New attribute maxlength and method error