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".
Merge pull request #931 from extr/patch-2

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