Refactored changeUnconfirmedUserEmail function