cursor position is not respected in registerview

cursor position is not respected in register view - phone number textfield.
When the cursor is moved in the phone number textfield to modify the number (ex. delete a digit),
the last digit is deleted and not the one before the cursor.
A new digit is not inserted at cursor position but at the end of the number.
This change fixes the issues