fixed misshandling of username check for Windows