Fixed auth decorator to get login url from settings