Fixed an issue where the username was not being stored properly.