Fully implemented logging in on the gui