Sailing upwind takes concentration, quick reactions and a steady hand
The golden rules are:
To check if the boat is flat look at the transom relative to the water. Are the edges of the deck equally high above the water? If not, you are not flat enough. If you are very keen you could invest in an inclinometer (a device which indicates your angle of heel).