Cash movements should be posted through a balance sheet account, directors loan account being one such example. Double entry being Dr DLA 500 Cr bank 500, this entry says dir has taken 500 out of th business, but unless a second transaction (legitimising the drawing as an expense) is posted, then this just represents a loan to the dir.
Any actual expense such as directors wages should be posted between P/L and balance sheet for example Dr Dir remuneration (P/L) 500 Cr DLA (DLA) 500
The above would reflect 500 wages due as an expense and 500 drawn from the company bank with the DLA net balance being nil.
When you put money in to the business, you should be increasing the liabilities (debt to you) and the assets (cash at bank) and both these accounts should be balance sheet accounts for example Dr bank 1000 Cr DLA 1000.