You could opt for a ceiling material that resists mold and mildew like fiberglass and PVC panels, or you can make up a water and vinegar mixture to apply to the ceiling after you have used the bathroom to keep the mold at bay.