{% if config.plugins.login.enabled and grav.user.username %} not working

Have not noticed this, well spotted.

Are you able to submit this as a bug report on Github? I just described this process on another thread if you are not familiar.

Doing that will get the attention of developers better than here and hopefully it will be resolved sooner.