made some changes for fix some exceptions of cross browser authentication