Moved the hook for updating login link to another module.