Tides, planetary companions, and habitability: habitability in the habitable zone of low-mass stars