No I don't. The username was being entered with several trailing blank spaces, hence the 'username '. However, the password was being entered correctly, and even when the user entered the username correctly, the error still occurred. It seems like Windows was caching the username that was being logged in and continued to use the old one (with the trailing spaces) even when the correct username was being used.
Thanks