Better error message if user omits domain from username

It's an easy mistake to omit the domain from the username. The old error message was unhelpful:

> IndexError: list index out of range

Better to see

> ValueError: username should be in 'domain\username' format.