How to automatically transfer name value entered in one field into another one?