Updated the module to support custom redirects to login screen