Hide "Login" and "Register" links when users are disabled in User Settings

Hide "Login" and "Register" links when users are disabled in User Settings instead of flash message showing "Users not enabled".