added a feature where the GUI remembers who previously logged in