Added name text field functionality