Linked the jFrames for Main and Register