Adapted to the changes in EncryptedKeyPair.
Fixed a bug and tested against it where the username was not set properly in the controller.
Removed the username text field since it didn't make any sense.