I worked full time, and my husband is a full time graduate student with a federal stipend. Should we file jointly or separately? We have had to pay in previous years

We filed separately last year and had to pay a huge fee to the state and federal government and I'm not sure why? He was enrolled in school full time for the entire year and his stipend is paid through a grant and he paid taxes on the income.