Connected GUI to the register, added getters for values from the form