Fixed bug in LoginErrorComm, missing header
Fixed resource mining