It needs only to be valid for the duration of your stay. However, if you're planning on visiting another island, you need to check their requirements. Anguilla, for example, requires three months.