added automatic field length checking

user cannot type anymore if the text length reached it's limit for all
fields (i think) to avoid "data too long for column x" error