Removed some duplicate code from the packet class. Also added WIN32 specific header to adminconnection
Added error checking where if the username or password is empty a messagebox is shown with information about the error