Habitability of the young earth could boost the chances of life elsewhere