Testing that save works.

Added code for the ok button so that when it is pressed the name can be
checked.