changed tags usage from element to attribute to support IE7.
added max len validation check