Fixed an issue where an empty username would be seen as valid.