Cleaned up RenamePrompt

Defined a function for the name confirmation and used that.