fixed Memory leaks

basically the program was not deleting the previous user’s emails.  and
the different threads were crashing into each other.  I implemented the
destructor for the user class. And i deleted the currentUser * member
variable for the mainWindow.h file and replaced it with a local
variable.