added weight concept for the textfield