You need to use `$username !== ''` here as well.