when the username is set to an empty string, it should be considered as if it is null