The most basic rules are you must have 1 goalkeeper, at least 1 striker, at least 3 defenders, at least 1 player on the left and at least 1 player on the right.

Post your formation here, and I will see what is wrong, if it is none of the above.