Output `login` values only when `login.enabled` is `true`

When `login.enabled` is set to `false`,  the `login:` filed should not be written.