Add checks for acceptable username, fixes #11