fixed authentication plugin