added functionality to enter name text field