add functions for change pin and email existing