adding methods to fetch maxlength and onblur
conditionally append maxlength and onblur