Added listeners to the register GUI and added getUsername and
getPassword in RegisterGUI.