validate names and replace name for email on pins