Completed implementation of handleNameChangeAttempts.