Textfield functionality modified