Fixed issues with retain cycle within the authentication manager